<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>
<%@ include file="/common/taglibs.jsp"%>
<script type="text/javascript" src="${ctx }/scripts/plugins/menu/jquery.bgpos.js"></script>
<script type="text/javascript" src="${ctx }/scripts/cloudleap/initMenu.js"></script>

<menu:useMenuDisplayer name="Velocity" config="cssHorizontalMenu.vm" permissions="rolesAdapter">
	<ul class="menu">
		<c:choose>
			<c:when test="${'ROLE_ADMIN' eq currentRole.name }">
			    <menu:displayMenu name="AdviserMenu"/>
			</c:when>
			<c:when test="${'ROLE_ADVISER' eq currentRole.name }">
			    <menu:displayMenu name="VipManageMenu"/>
			    <menu:displayMenu name="EditorMenu"/>
			</c:when>
			<c:when test="${'ROLE_EDITOR_IN_CHIEF' eq currentRole.name }">
			    <menu:displayMenu name="VipManageMenu"/>
			</c:when>
			<c:when test="${'ROLE_USER' eq currentRole.name }">
			    <menu:displayMenu name="MyVipMenu"/>
			</c:when>
			<c:otherwise>
			    <menu:displayMenu name="LoginMenu"/>
			</c:otherwise>
		</c:choose>
	    <menu:displayMenu name="VipMenu"/>
	    <menu:displayMenu name="StoryMenu"/>
	    <menu:displayMenu name="AboutMenu"/>
	</ul>
</menu:useMenuDisplayer>